how to sign a modded an apk on a mac with apktool
211317-Nov-2014
I have created a modded apk using api tool but when i try to install it , it doesn't install. When I rechecked and compared it with old api I found out my apt wasn't signed. I searched a lot but couldn't find out a method to sign apk on mac OS X.
Updated on 17-Nov-2014
Anonymous User
17-Nov-2014Got my solution- I use keytool, Jarsigner and zipalign from JDK by using following commands in terminal
To generate keystore
keytool -genkey -v -keystore my-keystore.keystore -alias name_alias -keyalg RSA -validity 10000
To sign an apk
jarsigner -verbose -keystore <path of my-keystore.keystore> <path of apk> alias_name
To zip align an apk
zipalign -f -v 4 <your.apk > <your_aligned.apk>